package tech.konata.packetfix.mixins;

import de.florianmichael.viamcp.fixes.FixedSoundEngine;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import tech.konata.packetfix.interfaces.IItemBlock;

@Mixin(ItemBlock.class)
public class MixinItemBlock implements IItemBlock {

    @Overwrite
    public boolean onItemUse(ItemStack par1, EntityPlayer par2, World par3, BlockPos par4, EnumFacing par5, float par6, float par7, float par8) {
        return FixedSoundEngine.onItemUse(((ItemBlock) (IItemBlock) this), par1, par2, par3, par4, par5, par6, par7, par8);
    }

}
